<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width= initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var a=prompt("输入a的值");
        var b=prompt("输入b的值");
        if(a>b){
            document.write(a);
        }
        else if(a==b){
            document.write("一样大")
        }
        else if(a<b){
            document.write(b)
        }
        else
        {
            document.write("输入错误")
        }
 

    </script>
</body>

</html>